/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 29489
 * Date: 2023-03-15
 * Time: 22:50
 */
public class Account {
    public Account(){}
    public Account(int id, String name, double balance, double annualInterestRate){
        this.id = id;
        this.name = name;
        this.balance = balance;
        this.annualInterestRate = annualInterestRate;
    }
    public void withdraw(int money){
        balance -= money;
    }
    public void deposit(int money){
        balance += money;
    }
    public double getMonthlyInterestRate(){
        return annualInterestRate/1200;
    }
    public void print(){
        System.out.println(id);
        System.out.println(name);
        System.out.println(balance);
        System.out.print(getMonthlyInterestRate()+"%");
    }

    private int id;
    private String name;
    private double balance;
    private double annualInterestRate;
}
